package com.xj.hk.controller;

import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;


/**
 * 课程处理类
 * @author AutoExport
 *
 */
@Controller
@RequestMapping(value="/")
public class SemesterController{
	
	private final String returnStr="/semester";
	
	/**
	 * 跳转课程页面
	 * @param request
	 * @param session
	 * @return
	 */
	@RequestMapping(value="/semesterIndex.htm")
	public ModelAndView semesterIndex(HttpServletRequest request,HttpSession session){
		Map<String, Object> map = new HashMap<String, Object>();
		return new ModelAndView(returnStr+"/semesterIndex", map);
	}
	
	/**
	 * 跳转编辑页面
	 * @param request
	 * @param session
	 * @return
	 */
	@RequestMapping(value="/toSemesterEdit.htm")
	public ModelAndView editCurriculum(HttpServletRequest request,HttpSession session){
		Map<String, Object> map = new HashMap<String, Object>();
		return new ModelAndView(returnStr+"/editSemester", map);
	}
	
	
}
